<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap" >
    <c:if test="${addReportFlay == true}">
        <button type="button" class="btn  length_2"
                onclick="window.location.href='${requestScope.FPWEB.rootPath }/report/weekly/edit${requestScope.FPWEB.urlStuff}'">添加周报</button>
    </c:if>
    <c:if test="${addAuthityFlay == true}">
        <button type="button" class="btn  length_2"
                onclick="window.location.href='${requestScope.FPWEB.rootPath }/authority/user/list${requestScope.FPWEB.urlStuff}'">添加授权</button>
    </c:if>
    <div class="table_list">
        <table width="100%">
            <thead>
                <tr>
                    <td>ID</td>
                    <td>开始日期</td>
                    <td>结束日期</td>
                    <td>创建时间</td>
                    <td>最后更新时间</td>
                    <td>操作</td>
                </tr>
            </thead>
            <tbody id="J_word_list">
            <c:forEach items="${pager.pagerModel.dataList }" var="item" varStatus="i">
                <tr>
                    <td>${item.id}</td>
                    <td>${item.strMap.start_date}</td>
                    <td>${item.strMap.end_date}</td>
                    <td>${item.strMap.create_time}</td>
                    <td>${item.strMap.update_time}</td>
                    <td>
                        <a class="btn" href="${requestScope.FPWEB.rootPath }/report/weekly/detail${requestScope.FPWEB.urlStuff}?id=${item.id}">查看</a>
                        <a class="btn" href="${requestScope.FPWEB.rootPath }/report/weekly/edit${requestScope.FPWEB.urlStuff}?id=${item.id}">修改</a>
                        <a class="btn btn_submit J_ajax_del" href="${requestScope.FPWEB.rootPath }/report/weekly/delete${requestScope.FPWEB.urlStuff}?id=${item.id}">删除</a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
    <!-- 分页 -->
    <%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>
